package com.qijian.tool.domain.query;


import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;

import java.util.List;
import java.util.Set;
import lombok.ToString;
import com.baomidou.mybatisplus.annotation.TableName;


/**
 * 我的信息对象 查询条件类
 *
 * @author qijian
 * @date 2022-06-06
 */

@Data
@ToString
@TableName("sys_msg")
public class MsgQuery {

    @WhereType(filed = "id")
    private Long id;
    @WhereType(filed = "id", type = WhereTypeEnum.IN)
    private Set<Long> ids;
    @WhereType(filed = "source_id")
    private String sourceId;
    @WhereType(filed = "source_id", type = WhereTypeEnum.IN)
    private List<String> sourceIds;
    @WhereType(filed = "source_type")
    private String sourceType;
    @WhereType(filed = "msg_level")
    private String msgLevel;
    @WhereType(filed = "user_id")
    private Long userId;
    @WhereType(filed = "title",type = WhereTypeEnum.LIKE)
    private String title;
    @WhereType(filed = "content")
    private String content;
    @WhereType(filed = "is_read")
    private Boolean isRead;
    @WhereType(filed = "is_close")
    private Boolean isClose;


}
